const pkg = require('./package')

module.exports = {
  mode: 'universal',

  /*
  ** Headers of the page
  */
  head: {
    title: 'JapanHui',
    meta: [
      {charset: 'utf-8'},
      {name: 'viewport', content: 'width=device-width, initial-scale=1'},
      {hid: 'description', name: 'description', content: pkg.description}
    ],
    link: [
      {rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
    ],
    script: [
      {src: '//at.alicdn.com/t/font_994113_dz1skd5p9v.js'},
      // {src: '/js/prism.js'},
      // 百度主推文章收录用
      {src: 'https://zz.bdstatic.com/linksubmit/push.js'},
      // 加入百度统计js，使用时自行添加为自己的
      {src: 'https://hm.baidu.com/hm.js?75fd7a062cf64d7693f4f8422db3ffbf'},  // vpnbook
      // {src: 'https://hm.baidu.com/hm.js?ecdcc236ccd27c2b9a83cdffa97a39e1'},  // blog
      // {src: 'https://hm.baidu.com/hm.js?ce2f3e416a567d7710eef793f8c0cab8'},  // myvpn
      // {type: 'text/javascript', src: 'https://a.optmnstr.com/app/js/api.min.js', data-account:'XXXXX', data-user:'XXXXX', async:true},
    ]
  },

  /*
  ** Customize the progress-bar color
  */
  loading: {color: '#FFFFFF'},

  /*
  ** Global CSS
  */
  css: [
    'element-ui/lib/theme-chalk/index.css',
    './assets/reset.scss',
    "swiper/css/swiper.css"
  ],

  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
    '@/plugins/element-ui',
    {src: '@/plugins/vue-awesome-swiper', mode: 'client'},

    // { src: "~/plugins/swiper.js", ssr: false }
  ],

  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://github.com/nuxt-community/axios-module#usage
    '@nuxtjs/axios'
  ],
  /*
  ** Axios module configuration
  */
  axios: {
    // See https://github.com/nuxt-community/axios-module#options
  },

  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
    extend(config, ctx) {

    }
  }
}
